package top.dark.search.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: Darkn
 * description: 查询商品返回给页面的结果
 * Create Time: 2021/3/11 16:00
 */
@Data
public class SearchResultVo {
    private List<SkuInfoUpEsVo> products;   // 商品信息
    private Integer pageNum;                // 当前页码
    private Long total;                     // 总记录数
    private Integer totalPages;             // 总页码
    private List<BrandVo> brands;           // 品牌信息
    private List<CatalogVo> catalogs;       // 分类信息
    private List<AttrVo> attrs;             // 属性信息
    private List<Integer> pageNavs;         // 页码导航
    private List<NavVo> navs = new ArrayList<>();   // 面包屑导航
    private List<Long> attrIds;             // 用户选中属性列表

    @Data
    public static class NavVo{
        private String navName;             // 导航名
        private String navValue;            // 导航值
        private String link;                // 跳转链接
    }

    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }
    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
